package com.wenlin.customerservice.service.impl;

import com.wenlin.customerservice.client.UserClient;
import com.wenlin.customerservice.domain.User;
import com.wenlin.customerservice.response.Message;
import com.wenlin.customerservice.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/***
 *  Created with IntelliJ IDEA.
 *  User:  wenlin
 *  Date:  2017/11/24
 *  Time:  9:14
 *  Description:
 **/
@Service
public class CustomerServiceImpl implements CustomerService{

    @Autowired
    private UserClient userClient;
    /***
     *  User:  wenlin
     *  Date:  2017/11/24
     *  Time:  9:15
     *  Description:获取用户基本信息
     **/
    @Override
    public Message<User> get(Integer id) {
        return userClient.getUser(id);
    }
}
